<div class="paging">
<div>
	Sort by : 
	<?php echo $paginator->sort(__('Date',true),'created');?> 
	<?php echo $paginator->sort(__('Page',true),'page_id');?>
	
</div>

	<?php echo $paginator->prev('<< '.__('previous', true));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>');?>
</div>

<?php foreach($comments as $comment): ?>

<h3>
	<?php echo $html->link($comment['Comment']['author'], "/pages/view/".$comment['Page']['slug']); ?>
</h3>
<p class="content"><?php echo $html2->substr($comment['Comment']['content'], 200, 'x_stripAll'); ?></p>

<div class="info">
	<?php echo $comment['Comment']['created']; ?> -
	In <?php echo $comment['Page']['title']; ?> -
	IP : <?php echo $comment['Comment']['ip']; ?> -
	<?php echo $html->link('Edit', array('controller' => 'comments', 'action' => 'admin_edit', 'id' => $comment['Comment']['id'])); ?>
	<?php echo $html2->link('Delete', array('controller' => 'comments', 'action' => 'admin_delete', 'id' => $comment['Comment']['id']), null, 'Are you sure to delete this comment?'); ?>
</div>

<?php endforeach; ?>

<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>');?>
</div>
